"""
定义字符串变量name，内容为"itheima is a brand of itcast"，通过for循环，遍历此字符串，统计有多少个a

"""
name = "itheima is a brand of itcast"
count = 0
for x in name:
    if x == "a":
        count = count+1
print(f"字符串里一共有{count}个a")

